home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / asteroid.swf / scripts / __Packages / com / evilfree / astroidsRevenge / Bullet.as < prev    next >
Text File  |  2010-11-09  |  9KB  |  272 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 746 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = -993 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 182)
  9.    {
  10.       set("\x01",eval("\x01") + 668);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 973)
  14.    {
  15.       set("\x01",eval("\x01") - 947);
  16.    }
  17.    else
  18.    {
  19.       if(eval("\x01") == 606)
  20.       {
  21.          set("\x01",eval("\x01") + 367);
  22.          ┬º┬ºpop()[┬º┬ºpop()] = function ┬º\x01\x02┬º()
  23.          {
  24.             return 746 % 511 * 5;
  25.          };
  26.          _loc1_[┬º┬ºconstant(9)] = _loc1_[┬º┬ºconstant(70)][┬º┬ºconstant(54)](┬º┬ºconstant(69),┬º┬ºconstant(69) + _loc1_[┬º┬ºconstant(50)],_loc1_[┬º┬ºconstant(50)]);
  27.          _loc1_[┬º┬ºconstant(9)][┬º┬ºconstant(65)] = _loc1_[┬º┬ºconstant(24)];
  28.          _loc1_[┬º┬ºconstant(9)][┬º┬ºconstant(66)] = _loc1_[┬º┬ºconstant(25)];
  29.          var _loc2_ = new ┬º\┬º\┬ºconstant(72)┬º(_loc1_[┬º┬ºconstant(21)][┬º┬ºconstant(71)]());
  30.          _loc2_[┬º┬ºconstant(74)](_loc1_[┬º┬ºconstant(21)][┬º┬ºconstant(73)]());
  31.          var _loc3_ = eval(┬º┬ºconstant(26))[┬º┬ºconstant(27)](eval(┬º┬ºconstant(26))[┬º┬ºconstant(75)]() * 3);
  32.          if(_loc3_ == 0)
  33.          {
  34.             _loc2_[┬º┬ºconstant(77)](┬º┬ºconstant(76));
  35.          }
  36.          if(_loc3_ == 1)
  37.          {
  38.             _loc2_[┬º┬ºconstant(77)](┬º┬ºconstant(78));
  39.          }
  40.          if(_loc3_ == 2)
  41.          {
  42.             _loc2_[┬º┬ºconstant(77)](┬º┬ºconstant(79));
  43.          }
  44.          if(_loc3_ == 3)
  45.          {
  46.             _loc2_[┬º┬ºconstant(77)](┬º┬ºconstant(80));
  47.          }
  48.          _loc2_[┬º┬ºconstant(81)](0,1);
  49.          _loc1_[┬º┬ºconstant(9)][┬º┬ºconstant(10)] = 200;
  50.          _loc1_[┬º┬ºconstant(9)][┬º┬ºconstant(11)] = 200;
  51.          ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  52.          ┬º┬ºconstant(82)(eval(┬º┬ºconstant(1))[┬º┬ºconstant(3)][┬º┬ºconstant(4)][┬º┬ºconstant(5)][┬º┬ºconstant(14)],null,1);
  53.          break;
  54.       }
  55.       if(eval("\x01") == 454)
  56.       {
  57.          set("\x01",eval("\x01") + 3);
  58.          if(function ┬º\x01\x02┬º()
  59.          {
  60.             return 746 % 511 * 5;
  61.          })
  62.          {
  63.             set("\x01",eval("\x01") - 238);
  64.          }
  65.       }
  66.       else if(eval("\x01") == 172)
  67.       {
  68.          set("\x01",eval("\x01") + 611);
  69.          ┬º┬ºpush("\x0f");
  70.          ┬º┬ºpush(1);
  71.       }
  72.       else
  73.       {
  74.          if(eval("\x01") == 457)
  75.          {
  76.             set("\x01",eval("\x01") - 238);
  77.             break;
  78.          }
  79.          if(eval("\x01") == 26)
  80.          {
  81.             set("\x01",eval("\x01") + 428);
  82.             ┬º┬ºpush(true);
  83.          }
  84.          else if(eval("\x01") == 589)
  85.          {
  86.             set("\x01",eval("\x01") - 563);
  87.          }
  88.          else if(eval("\x01") == 783)
  89.          {
  90.             set("\x01",eval("\x01") + 42);
  91.             var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  92.             {
  93.                return 746 % 511 * 5;
  94.             };
  95.          }
  96.          else if(eval("\x01") == 518)
  97.          {
  98.             set("\x01",eval("\x01") - 59);
  99.             ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  100.             {
  101.                return 746 % 511 * 5;
  102.             }));
  103.          }
  104.          else if(eval("\x01") == 825)
  105.          {
  106.             set("\x01",eval("\x01") - 307);
  107.             ┬º┬ºpush("\x0f");
  108.          }
  109.          else if(eval("\x01") == 254)
  110.          {
  111.             set("\x01",eval("\x01") - 82);
  112.          }
  113.          else if(eval("\x01") == 219)
  114.          {
  115.             set("\x01",eval("\x01") - 47);
  116.          }
  117.          else if(eval("\x01") == 850)
  118.          {
  119.             set("\x01",eval("\x01") - 244);
  120.             if(function ┬º\x01\x02┬º()
  121.             {
  122.                return 746 % 511 * 5;
  123.             })
  124.             {
  125.                set("\x01",eval("\x01") + 367);
  126.             }
  127.          }
  128.          else if(eval("\x01") == 459)
  129.          {
  130.             set("\x01",eval("\x01") - 331);
  131.             ┬º┬ºpush(!function ┬º\x01\x02┬º()
  132.             {
  133.                return 746 % 511 * 5;
  134.             });
  135.          }
  136.          else if(eval("\x01") == 128)
  137.          {
  138.             set("\x01",eval("\x01") + 259);
  139.             if(function ┬º\x01\x02┬º()
  140.             {
  141.                return 746 % 511 * 5;
  142.             })
  143.             {
  144.                set("\x01",eval("\x01") + 566);
  145.             }
  146.          }
  147.          else
  148.          {
  149.             if(eval("\x01") == 953)
  150.             {
  151.                set("\x01",eval("\x01") + 4);
  152.                if(!_global.com)
  153.                {
  154.                   _global.com = new Object();
  155.                }
  156.                function ┬º\x01\x02┬º()
  157.                {
  158.                   return 746 % 511 * 5;
  159.                }
  160.                if(!_global.com.evilfree)
  161.                {
  162.                   _global.com.evilfree = new Object();
  163.                }
  164.                ┬º┬ºpop();
  165.                if(!_global.com.evilfree.astroidsRevenge)
  166.                {
  167.                   _global.com.evilfree.astroidsRevenge = new Object();
  168.                }
  169.                ┬º┬ºpop();
  170.                if(!_global.com.evilfree.astroidsRevenge.Bullet)
  171.                {
  172.                   com.evilfree.astroidsRevenge.Bullet extends com.evilfree.astroidsRevenge.BaseCharacter;
  173.                   _loc2_ = com.evilfree.astroidsRevenge.Bullet = function(m, target_mc)
  174.                   {
  175.                      super();
  176.                      this.main = m;
  177.                      this.myDamage = 10;
  178.                   }.prototype;
  179.                   _loc2_.setDamage = function(dAmount)
  180.                   {
  181.                      this.myDamage = dAmount;
  182.                   };
  183.                   _loc2_.getDamage = function()
  184.                   {
  185.                      return this.myDamage;
  186.                   };
  187.                   _loc2_.applyFriction = function()
  188.                   {
  189.                   };
  190.                   _loc2_.checkBounds = function()
  191.                   {
  192.                      if(this.xPos > this.main.getStageWidth() + 150)
  193.                      {
  194.                         this.main.removeBullet(this);
  195.                      }
  196.                      else if(this.xPos < -150)
  197.                      {
  198.                         this.main.removeBullet(this);
  199.                      }
  200.                      else if(this.yPos > this.main.getStageHeight() + 150)
  201.                      {
  202.                         this.main.removeBullet(this);
  203.                      }
  204.                      else if(this.yPos < -150)
  205.                      {
  206.                         this.main.removeBullet(this);
  207.                      }
  208.                   };
  209.                   _loc2_.drawMe = function()
  210.                   {
  211.                      var _loc2_ = this.main.getBitmap();
  212.                      if(this.myDamage == 10)
  213.                      {
  214.                         _loc2_.fillRect(new flash.geom.Rectangle(this.xPos - 1,this.yPos - 1,3,3),16711680);
  215.                      }
  216.                      if(this.myDamage == 20)
  217.                      {
  218.                         _loc2_.fillRect(new flash.geom.Rectangle(this.xPos - 2,this.yPos - 2,4,4),65280);
  219.                      }
  220.                   };
  221.                   _loc2_.animate = function()
  222.                   {
  223.                      super.animate();
  224.                      var _loc12_ = this.main.getBitmap();
  225.                      if(_loc12_.getPixel(this.xPos,this.yPos) == 0)
  226.                      {
  227.                         return undefined;
  228.                      }
  229.                      var _loc11_ = Math.floor(this.xPos / 50);
  230.                      var _loc10_ = Math.floor(this.yPos / 50);
  231.                      var _loc8_ = this.main.getAsteroidsFromGrid(_loc11_,_loc10_);
  232.                      if(_loc8_ == undefined)
  233.                      {
  234.                         return undefined;
  235.                      }
  236.                      var _loc9_ = _loc8_.length;
  237.                      var _loc4_ = 0;
  238.                      while(_loc4_ < _loc9_)
  239.                      {
  240.                         var _loc3_ = _loc8_[_loc4_];
  241.                         var _loc5_ = this.getTargetXDistance(_loc3_);
  242.                         var _loc6_ = this.getTargetYDistance(_loc3_);
  243.                         var _loc7_ = Math.sqrt(_loc5_ * _loc5_ + _loc6_ * _loc6_);
  244.                         if(_loc7_ < _loc3_.getSize() / 2 + 5)
  245.                         {
  246.                            _loc3_.bulletHitMe(this.myDamage);
  247.                            this.main.removeBullet(this);
  248.                            break;
  249.                         }
  250.                         _loc4_ = _loc4_ + 1;
  251.                      }
  252.                   };
  253.                   ┬º┬ºpush(ASSetPropFlags(com.evilfree.astroidsRevenge.Bullet.prototype,null,1));
  254.                }
  255.                ┬º┬ºpop();
  256.                break;
  257.             }
  258.             if(eval("\x01") != 387)
  259.             {
  260.                if(eval("\x01") == 957)
  261.                {
  262.                   set("\x01",eval("\x01") - 957);
  263.                   break;
  264.                }
  265.                break;
  266.             }
  267.             set("\x01",eval("\x01") + 566);
  268.          }
  269.       }
  270.    }
  271. }
  272.